﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Enter.Entity;
using Enter.BizLogic;

namespace Enter.Services.Mail
{
    public partial class Mail : IMail
    {
        /// <summary>
        /// 店铺正在举办的活动
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
        public List<T501_ActiveEntity> GetShopActiveList(int shopID, int count)
        {
            T501_ActiveBLLSub bll = new T501_ActiveBLLSub();
            return bll.GetShopAvtiveList(shopID, count);
        }
        /// <summary>
        /// 网站正在举办的活动
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
        public List<T501_ActiveEntity> GetActiveList(int count)
        {
            T501_ActiveBLLSub bll = new T501_ActiveBLLSub();
            return bll.GetAvtiveList(count);
        }
         public T501_ActiveEntity GetActiveInfo(int AvticeID)
         {
         T501_ActiveBLLSub bll = new T501_ActiveBLLSub();
            return bll.GetObjectByID(AvticeID);
         }
         /// <summary>
        /// 活动规则
        /// </summary>
        /// <param name="ActiveID"></param>
        /// <returns></returns>
        public List<T502_ActiveRuleEntity> GetActiveRule(int ActiveID)
        {
            T502_ActiveRuleBLLSub bll=new T502_ActiveRuleBLLSub();
            return bll.GetActiveRule(ActiveID);
        }
        public List<T503_ActiveShopEntity> GetShopActive(int shopID)
        {
            T503_ActiveShopBLLSub bll = new T503_ActiveShopBLLSub();
            return bll.GetShopActive(shopID);
        }
	
    }
}
